package com.wuster.exception;

import com.wuster.result.ResultCodeEnum;
import lombok.Data;

@Data
public class OrderException extends RuntimeException{

    private Integer code;

    public OrderException(ResultCodeEnum resultCodeEnum){
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
    }

}